<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>分类</title>
		<link rel="stylesheet" href="css/top.css">
		<link rel="stylesheet" href="css/classification.css">
		<link rel="stylesheet" href="css/base.css">
		<link rel="stylesheet" href="css/bottom.css">
	</head>
	<body>
		<div class="top">
			<div class="tops">
				<div class="top-left">
					<a href="">
						<div class="topleft1">
							<div class="topleft1-size">小米商城</div>
							<div class="topleft1-size1">丨</div>
						</div>
						<div class="topleft1">
							<div class="topleft1-size">MIUI</div>
							<div class="topleft1-size1">丨</div>
						</div>
						<div class="topleft1">
							<div class="topleft1-size">loT</div>
							<div class="topleft1-size1">丨</div>
						</div>
						<div class="topleft1">
							<div class="topleft1-size">云服务</div>
							<div class="topleft1-size1">丨</div>
						</div>
						<div class="topleft1">
							<div class="topleft1-size">金融</div>
							<div class="topleft1-size1">丨</div>
						</div>
						<div class="topleft1">
							<div class="topleft1-size">有品</div>
							<div class="topleft1-size1">丨</div>
						</div>
						<div class="topleft1">
							<div class="topleft1-size">小爱开放平台</div>
							<div class="topleft1-size1">丨</div>
						</div>
						<div class="topleft1">
							<div class="topleft1-size">政企服务</div>
							<div class="topleft1-size1">丨</div>
						</div>
						<div class="topleft1">
							<div class="topleft1-size">下载app</div>
							<div class="topleft1-size1">丨</div>
						</div>
						<div class="topleft1">
							<div class="topleft1-size">Select Region</div>
						</div>
					</a>
				</div>
						<a href="">
								<div class="car-right">
											<i class="iconfont">&#xe64c;</i>购物车（0）
								</div>
								<div class="car-left">
												<span>登陆</span>
								<span>|</span>
									<span>注册</span>
								<span>|</span>
									<span>消息通知</span>
								</div>
						</a>    
			</div>
		</div>
		<!-- first开始 -->
		<div class="first">
			<div class="one">
				<a href="index.html"><img src="img/小米logo.png" alt=""></a>
			</div>
			<div class="two">
				<div class="left">
					<div class="text">全部商品分类</div>
					<div class="text">红米</div>
					<div class="text">电视</div>
					<div class="text">笔记本</div>
					<div class="text">家电</div>
					<div class="text">新品</div>
					<div class="text">路由器</div>
					<div class="text">智能硬件</div>
					<div class="text">服务</div>
					<div class="text">社区</div>
				</div>
				<div class="right">
					<div class="a">
						<input type="text" />
						<div class="tishi">
							<div>小米8</div>
							<div class="item">小米8</div>
							<div>小米8</div>
						</div>
					</div>
					<div class="b">
						<img src="img/b.png" alt="">
					</div>
					<div class="xianshi">
						<li>
							<span>小米6x</span>
							<span>约有6件</span>
						</li>
						<li>
							<span>小米6x</span>
							<span>约有6件</span>
						</li>
						<li>
							<span>小米6x</span>
							<span>约有6件</span>
						</li>
						<li>
							<span>小米6x</span>
							<span>约有6件</span>
						</li>
						<li>
							<span>小米6x</span>
							<span>约有6件</span>
						</li>
						<li>
							<span>小米6x</span>
							<span>约有6件</span>
						</li>
						<li>
							<span>小米6x</span>
							<span>约有6件</span>
						</li>
						<li>
							<span>小米6x</span>
							<span>约有6件</span>
						</li>
						
					</div>
				</div>
			</div>
		</div>
		<div class="second">
			<div class="second-con">
				<ul class="second-big-box">
					<li>
						<div class="new">新品</div>
						<div class="img-box">
							<img src="img/r.png" alt="">
						</div>
						<div class="text1">小米MIX 3</div>
						<div class="text2">3999元起</div>
					</li>
					<li>
						<div class="new">新品</div>
						<div class="img-box">
							<img src="img/r.png" alt="">
						</div>
						<div class="text1">小米MIX 3</div>
						<div class="text2">3999元起</div>
					</li>
					<li>
						<div class="new">新品</div>
						<div class="img-box">
							<img src="img/r.png" alt="">
						</div>
						<div class="text1">小米MIX 3</div>
						<div class="text2">3999元起</div>
					</li>
					<li>
						<div class="new">新品</div>
						<div class="img-box">
							<img src="img/r.png" alt="">
						</div>
						<div class="text1">小米MIX 3</div>
						<div class="text2">3999元起</div>
					</li>
					<li>
						<div class="new">新品</div>
						<div class="img-box last">
							<img src="img/r.png" alt="">
						</div>
						<div class="text1">小米MIX 3</div>
						<div class="text2">3999元起</div>
					</li>
					<li></li>
					<li></li>
					
					
					<li>
						<div class="new">新品</div>
						<div class="img-box">
							<img src="//i1.mifile.cn/a1/pms_1524621350.77238418!220x220.jpg" alt="">
						</div>
						<div class="text1">小米MIX 3</div>
						<div class="text2">3999元起</div>
					</li>
					<li>
						<div class="new">新品</div>
						<div class="img-box">
							<img src="//i1.mifile.cn/a1/pms_1524621350.77238418!220x220.jpg" alt="">
						</div>
						<div class="text1">小米MIX 3</div>
						<div class="text2">3999元起</div>
					</li>
					<li>
						<div class="new">新品</div>
						<div class="img-box">
							<img src="//i1.mifile.cn/a1/pms_1524621350.77238418!220x220.jpg" alt="">
						</div>
						<div class="text1">小米MIX 3</div>
						<div class="text2">3999元起</div>
					</li>
					<li>
						<div class="new">新品</div>
						<div class="img-box">
							<img src="//i1.mifile.cn/a1/pms_1524621350.77238418!220x220.jpg" alt="">
						</div>
						<div class="text1">小米MIX 3</div>
						<div class="text2">3999元起</div>
					</li>
					<li>
						<div class="new">新品</div>
						<div class="img-box last">
							<img src="//i1.mifile.cn/a1/pms_1524621350.77238418!220x220.jpg" alt="">
						</div>
						<div class="text1">小米MIX 3</div>
						<div class="text2">3999元起</div>
					</li>
					<li></li>
					<li></li>
					
					<li>
						<div class="new">新品</div>
						<div class="img-box">
							<img src="//i1.mifile.cn/a1/pms_1531878001.22998509!220x220.jpg" alt="">
						</div>
						<div class="text1">小米MIX 3</div>
						<div class="text2">3999元起</div>
					</li>
					<li>
						<div class="new">新品</div>
						<div class="img-box">
							<img src="//i1.mifile.cn/a1/pms_1531878001.22998509!220x220.jpg" alt="">
						</div>
						<div class="text1">小米MIX 3</div>
						<div class="text2">3999元起</div>
					</li>
					<li>
						<div class="new">新品</div>
						<div class="img-box">
							<img src="//i1.mifile.cn/a1/pms_1531878001.22998509!220x220.jpg" alt="">
						</div>
						<div class="text1">小米MIX 3</div>
						<div class="text2">3999元起</div>
					</li>
					<li>
						<div class="new">新品</div>
						<div class="img-box">
							<img src="//i1.mifile.cn/a1/pms_1531878001.22998509!220x220.jpg" alt="">
						</div>
						<div class="text1">小米MIX 3</div>
						<div class="text2">3999元起</div>
					</li>
					<li>
						<div class="new">新品</div>
						<div class="img-box last">
							<img src="//i1.mifile.cn/a1/pms_1531878001.22998509!220x220.jpg" alt="">
						</div>
						<div class="text1">小米MIX 3</div>
						<div class="text2">3999元起</div>
					</li>
					<li></li>
					<li></li>
					
					<li>
						<div class="new">新品</div>
						<div class="img-box">
							<img src="//i1.mifile.cn/a1/pms_1528719461.20891365!220x220.jpg" alt="">
						</div>
						<div class="text1">小米MIX 3</div>
						<div class="text2">3999元起</div>
					</li>
					<li>
						<div class="new">新品</div>
						<div class="img-box">
							<img src="//i1.mifile.cn/a1/pms_1528719461.20891365!220x220.jpg" alt="">
						</div>
						<div class="text1">小米MIX 3</div>
						<div class="text2">3999元起</div>
					</li>
					<li>
						<div class="new">新品</div>
						<div class="img-box">
							<img src="//i1.mifile.cn/a1/pms_1528719461.20891365!220x220.jpg" alt="">
						</div>
						<div class="text1">小米MIX 3</div>
						<div class="text2">3999元起</div>
					</li>
					<li>
						<div class="new">新品</div>
						<div class="img-box">
							<img src="//i1.mifile.cn/a1/pms_1528719461.20891365!220x220.jpg" alt="">
						</div>
						<div class="text1">小米MIX 3</div>
						<div class="text2">3999元起</div>
					</li>
					<li>
						<div class="new">新品</div>
						<div class="img-box last">
							<img src="//i1.mifile.cn/a1/pms_1528719461.20891365!220x220.jpg" alt="">
						</div>
						<div class="text1">小米MIX 3</div>
						<div class="text2">3999元起</div>
					</li>
					<li></li>
					<li></li>
					<li>
						<div class="new">新品</div>
						<div class="img-box">
							<img src="//i1.mifile.cn/a1/pms_1522034061.12391230!220x220.jpg" alt="">
						</div>
						<div class="text1">小米MIX 3</div>
						<div class="text2">3999元起</div>
					</li>
					<li>
						<div class="new">新品</div>
						<div class="img-box">
							<img src="//i1.mifile.cn/a1/pms_1522034061.12391230!220x220.jpg" alt="">
						</div>
						<div class="text1">小米MIX 3</div>
						<div class="text2">3999元起</div>
					</li>
					<li>
						<div class="new">新品</div>
						<div class="img-box">
							<img src="//i1.mifile.cn/a1/pms_1522034061.12391230!220x220.jpg" alt="">
						</div>
						<div class="text1">小米MIX 3</div>
						<div class="text2">3999元起</div>
					</li>
					<li>
						<div class="new">新品</div>
						<div class="img-box">
							<img src="//i1.mifile.cn/a1/pms_1522034061.12391230!220x220.jpg" alt="">
						</div>
						<div class="text1">小米MIX 3</div>
						<div class="text2">3999元起</div>
					</li>
					<li>
						<div class="new">新品</div>
						<div class="img-box last">
							<img src="//i1.mifile.cn/a1/pms_1522034061.12391230!220x220.jpg" alt="">
						</div>
						<div class="text1">小米MIX 3</div>
						<div class="text2">3999元起</div>
					</li>
					<li></li>
					<li></li>
				</ul>
			</div>
		</div>
		<div class="fenlei1">
			<div class="fenlei1s"><span>首页 > 全部结果 > 无人机 </span></div>
		</div>
		<div class="fenlei2">
			<span>分类：</span>
			<div class="fenlei2s">
				<span>全部</span>
				<span>无人机</span>
				<span>遥控电动</span>
			</div>
		</div>
		<div class="beijingse">
		<div class="fenlei3">
			<div class="fenlei3s">
				<div class="fenleis1">
					<div class="fenles1-1">
						<div>推荐</div>
						<div>新品</div>
						<div>价格↑</div>
						<div>评论最多</div>
					</div>
					<div class="fenles1-2">
						<div><input type="checkbox" name="" id="" value="" /><span>查看评价</span></div>
						<div><input type="checkbox" name="" id="" value="" /><span>仅显示特惠商品</span></div>
						<div><input type="checkbox" name="" id="" value="" /><span>仅显示有货商品</span></div>
					</div>
				</div>
				<div class="fenleis2">
					<div class="fenleis2-1">
						<img src="//i1.mifile.cn/a1/pms_1487824962.01314237!200x200.jpg" alt="">
						<div>小米无人机4K版套装</div>
						<div><span>2949元</span><s>2999元</s></div>
						<div><img src="//i1.mifile.cn/a1/pms_1487824962.01314237!34x34.jpg" alt=""></div>
						<div class="dibushuangtiao">
							<div class="dibushuangtiao1"><span>9.9折促销</span></div>
							<div class="dibushuangtiao2"><span>有赠品</span></div>
						</div>
						<div><i class="iconfont">&#xe623;</i></div>
						<div><i class="iconfont">&#xe616;</i></div>
					</div>
					<div class="fenleis2-1">
						<img src="//i1.mifile.cn/a1/pms_1487824962.01314237!200x200.jpg" alt="">
						<div>小米无人机4K版套装</div>
						<div><span>2949元</span><s>2999元</s></div>
						<div><img src="//i1.mifile.cn/a1/pms_1487824962.01314237!34x34.jpg" alt=""></div>
						<div class="dibushuangtiao">
							<div class="dibushuangtiao1"><span>9.9折促销</span></div>
							<div class="dibushuangtiao2"><span>有赠品</span></div>
						</div>
						<div><i class="iconfont">&#xe623;</i></div>
						<div><i class="iconfont">&#xe616;</i></div>
					</div>
					<div class="fenleis2-1">
						<img src="//i1.mifile.cn/a1/pms_1487824962.01314237!200x200.jpg" alt="">
						<div>小米无人机4K版套装</div>
						<div><span>2949元</span><s>2999元</s></div>
						<div><img src="//i1.mifile.cn/a1/pms_1487824962.01314237!34x34.jpg" alt=""></div>
						<div class="dibushuangtiao">
							<div class="dibushuangtiao1"><span>9.9折促销</span></div>
							<div class="dibushuangtiao2"><span>有赠品</span></div>
						</div>
						<div><i class="iconfont">&#xe623;</i></div>
						<div><i class="iconfont">&#xe616;</i></div>
					</div>
					<div class="fenleis2-1">
						<img src="//i1.mifile.cn/a1/pms_1487824962.01314237!200x200.jpg" alt="">
						<div>小米无人机4K版套装</div>
						<div><span>2949元</span><s>2999元</s></div>
						<div><img src="//i1.mifile.cn/a1/pms_1487824962.01314237!34x34.jpg" alt=""></div>
						<div class="dibushuangtiao">
							<div class="dibushuangtiao1"><span>9.9折促销</span></div>
							<div class="dibushuangtiao2"><span>有赠品</span></div>
						</div>
						<div><i class="iconfont">&#xe623;</i></div>
						<div><i class="iconfont">&#xe616;</i></div>
					</div>
				</div>
			</div>
		</div>
		<div class="fenlei4">
			<div class="fenlei4s">
				<div class="fenlei4s-1"></div>
				<div class="fenlei4s-2">猜你喜欢</div>
				<div class="fenlei4s-3"></div>
			</div>
		</div>
		<div class="tui">	
			<ul>
				<li class="tui-forst">
					<img src="img/为你推荐%20.jpg" alt="">
					<div class="tui1-1">小米影视会员年卡 券</div>
					<div class="tui1-2">498元</div>
					<div class="tui1-3">1人好评</div>
				</li>
				<li>
					<img src="img/为你推荐%20.jpg" alt="">
					<div class="tui1-1">小米影视会员年卡 券</div>
					<div class="tui1-2">498元</div>
					<div class="tui1-3">1人好评</div>
				</li>
				<li>
					<img src="img/为你推荐%20.jpg" alt="">
					<div class="tui1-1">小米影视会员年卡 券</div>
					<div class="tui1-2">498元</div>
					<div class="tui1-3">1人好评</div>
				</li>
				<li>
					<img src="img/为你推荐%20.jpg" alt="">
					<div class="tui1-1">小米影视会员年卡 券</div>
					<div class="tui1-2">498元</div>
					<div class="tui1-3">1人好评</div>
				</li>
				<li>
					<img src="img/为你推荐%20.jpg" alt="">
					<div class="tui1-1">小米影视会员年卡 券</div>
					<div class="tui1-2">498元</div>
					<div class="tui1-3">1人好评</div>
				</li>
				<li class="tui-forst">
					<img src="img/为你推荐%20.jpg" alt="">
					<div class="tui1-1">小米影视会员年卡 券</div>
					<div class="tui1-2">498元</div>
					<div class="tui1-3">1人好评</div>
				</li>
				<li>
					<img src="img/为你推荐%20.jpg" alt="">
					<div class="tui1-1">小米影视会员年卡 券</div>
					<div class="tui1-2">498元</div>
					<div class="tui1-3">1人好评</div>
				</li>
				<li>
					<img src="img/为你推荐%20.jpg" alt="">
					<div class="tui1-1">小米影视会员年卡 券</div>
					<div class="tui1-2">498元</div>
					<div class="tui1-3">1人好评</div>
				</li>
				<li>
					<img src="img/为你推荐%20.jpg" alt="">
					<div class="tui1-1">小米影视会员年卡 券</div>
					<div class="tui1-2">498元</div>
					<div class="tui1-3">1人好评</div>
				</li>
				<li>
					<img src="img/为你推荐%20.jpg" alt="">
					<div class="tui1-1">小米影视会员年卡 券</div>
					<div class="tui1-2">498元</div>
					<div class="tui1-3">1人好评</div>
				</li>
				<li class="tui-forst">
					<img src="img/为你推荐%20.jpg" alt="">
					<div class="tui1-1">小米影视会员年卡 券</div>
					<div class="tui1-2">498元</div>
					<div class="tui1-3">1人好评</div>
				</li>
				<li>
					<img src="img/为你推荐%20.jpg" alt="">
					<div class="tui1-1">小米影视会员年卡 券</div>
					<div class="tui1-2">498元</div>
					<div class="tui1-3">1人好评</div>
				</li>
				<li>
					<img src="img/为你推荐%20.jpg" alt="">
					<div class="tui1-1">小米影视会员年卡 券</div>
					<div class="tui1-2">498元</div>
					<div class="tui1-3">1人好评</div>
				</li>
				<li>
					<img src="img/为你推荐%20.jpg" alt="">
					<div class="tui1-1">小米影视会员年卡 券</div>
					<div class="tui1-2">498元</div>
					<div class="tui1-3">1人好评</div>
				</li>
				<li>
					<img src="img/为你推荐%20.jpg" alt="">
					<div class="tui1-1">小米影视会员年卡 券</div>
					<div class="tui1-2">498元</div>
					<div class="tui1-3">1人好评</div>
				</li>
			</ul>
		</div>
		</div>
		<!-- 底部开始 -->
		<div class="bottom">
			<div class="bottom1">
				<div class="bottom1s"><i class="iconfont">&#xe65a;</i><span>预约维修服务</span></div>
				<div class="bottom1s"><i class="iconfont">&#xe63a;</i><span>7天无理由退货</span></div>
				<div class="bottom1s"><i class="iconfont">&#xe638;</i><span>15天免费换货</span></div>
				<div class="bottom1s"><i class="iconfont">&#xe64d;</i><span>满150元包邮</span></div>
				<div class="bottom1s"><i class="iconfont">&#xe614;</i><span>520余家售后网点</span></div>
			</div>
			<div class="bottom2">
				<div class="bottom2a">
					<div class="bottom2a1">
						<div>帮助中心</div>
						<div>账户管理</div>
						<div>购物指南</div>
						<div>订单操作</div>
					</div>
					<div class="bottom2a1">
						<div>帮助中心</div>
						<div>账户管理</div>
						<div>购物指南</div>
						<div>订单操作</div>
					</div>
					<div class="bottom2a1">
						<div>帮助中心</div>
						<div>账户管理</div>
						<div>购物指南</div>
						<div>订单操作</div>
					</div>
					<div class="bottom2a1">
						<div>帮助中心</div>
						<div>账户管理</div>
						<div>购物指南</div>
						<div>订单操作</div>
					</div>
					<div class="bottom2a1">
						<div>帮助中心</div>
						<div>账户管理</div>
						<div>购物指南</div>
						<div>订单操作</div>
					</div>
					<div class="bottom2a1">
						<div>帮助中心</div>
						<div>账户管理</div>
						<div>购物指南</div>
						<div>订单操作</div>
					</div>
				</div>
				<div class="bottom2b">
					<div>400-100-5678</div>
					<div>周一至周日 8:00-18:00</div>
					<div>(仅收市话费)</div>
					<div class="bottom2bs">
						<i class="iconfont">&#xe628;</i><span>联系客服</span>
					</div>
				</div>
			</div>
		</div>
		<!-- 底部结束 -->
		<script>
			//input获得焦点
			let xqInput=document.querySelector(".first .two .right .a input");
			let xqInTi=document.querySelector(".first .two .right .xianshi");
			let xqInTis=document.querySelector(".tishi");
			let xqInA=document.querySelector(".first .two .right .a");
			let xqInB=document.querySelector(".first .two .right");
			xqInput.onfocus=function(){
				xqInTis.style.display="none";
				xqInTi.style.display="block";
				xqInA.classList.add("act");
				xqInB.style.border="1px solid #ff6700";
			}
			xqInput.onblur=function(){
				xqInTis.style.display="block";
				xqInTi.style.display="none";
				xqInA.classList.remove("act");
				xqInB.style.border="1px solid #e0e0e0";
			}
			//下拉菜单轮播
			let xqXiaLis = document.querySelectorAll(".first .two .left div");
			let xqYiLis = document.querySelectorAll(".second .second-con ul li");
			let xqYiDong = document.querySelector(".second .second-con ul");
			let xqian = document.querySelector(".first .two .left");
			let xqNone = document.querySelector(".second");
			let xqNone1 = document.querySelector(".second .second-con");
			xqian.onmouseover = function() {
				xqNone.style.height = "300px";
				xqNone1.style.height = "300px";
			}
			xqian.onmouseout = function() {
				xqNone.style.height = "0px";
				xqNone1.style.height = "0px";
			}
			xqYiDong.onmouseover = function() {
				xqNone.style.height = "300px";
				xqNone1.style.height = "300px";
			}
			xqYiDong.onmouseout = function() {
				xqNone.style.height = "0px";
				xqNone1.style.height = "0px";
			}
			xqXiaLis.forEach((val, index) => {
				val.onmouseover = function() {
					// 				    if(index>=5){
					// 						 xqNone.style.height="0px";
					// 						 xqNone1.style.height="0px";
					// 					}
					let xqSize2 = 7 * xqYiLis[0].offsetWidth;
					xqYiDong.style.left = -xqSize2 * index + "px";
				}
			})
		</script>
	</body>
</html>
